num = int(input("请输入一个数,范围在2~1000\n"))
print(num, "=", end='')

if num < 0:
    num = abs(num)
    print('-1*', end='')

flag = 0
if num <= 1:
    print(num)
    flag = 1

while True:
    if flag:
        break
    for i in range(2, int(num + 1)):
        if num % i == 0:
            print("%d" % i, end='')
            if num == i:
                flag = 1
                break
            print('*', end='')
            num /= i
            break
